﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="rxtGpzj.aspx.cs" Inherits="rxt_rxtGpzj" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Button ID="btnAdd" CssClass="common_button" runat="server" Text="添加" OnClientClick="document.location='gpzj_Add.aspx';return false;" />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id" onrowcommand="GridView1_RowCommand" CellPadding="4" 
            ForeColor="#333333" GridLines="None" Width="1016px">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="NAME" HeaderText="股票名称" />
                <asp:BoundField DataField="LINK" HeaderText="链接地址" />
                <asp:BoundField DataField="mrTime" HeaderText="买入时间" 
                    DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="upDown" HeaderText="涨幅" />
                <asp:TemplateField HeaderText="修改">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnModify" CommandArgument='<%#Eval("id") %>' CommandName="cupdate" runat="server" Text="修改"  />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                          <asp:LinkButton ID="btnDel" CommandArgument='<%#Eval("id") %>' CommandName="cdelete" runat="server" Text="删除" OnClientClick ="return confirm('确定删除？')"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
